#ifndef RECORDINFOMODEL_H
#define RECORDINFOMODEL_H
#include <QAbstractListModel>
#include <QStringList>
#include "dataDefination.h"

class RecordInfoModel:public QAbstractListModel
{
    Q_OBJECT
     public:
         enum RecordInfoRoles {
             NameRole = Qt::UserRole + 1,
             ContextRole
         };

         RecordInfoModel(QObject *parent = 0);

         void addRecordInfo(const recordInfo &recordinfo);

         int rowCount(const QModelIndex & parent = QModelIndex()) const;

         QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;

     private:
         QList<recordInfo> m_recordInfos;
};

#endif // RECORDINFOMODEL_H
